# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname="gnome-obfuscate"
pkgver="0.0.2"
pkgrel=1
pkgdesc="Censor private information"
url="https://gitlab.gnome.org/World/obfuscate"
arch="all !s390x !mips !mips64" # rust
license="MIT"
makedepends="meson cargo gtk+3.0-dev"
checkdepends="desktop-file-utils appstream-glib"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/obfuscate/uploads/c0195c28c183eacb449702c140ddbc13/obfuscate-$pkgver.tar.xz"
builddir="$srcdir/obfuscate-$pkgver"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="c084d00de60d88bd7b57319c9944fe4730060aaf9cb1978483e84c1e2f5d9d63476a9b0f959321756c2ea2aa165f8cc1241541f4348e0646120dbd4c6b2b6d78  obfuscate-0.0.2.tar.xz"
